﻿namespace SLClient.ServiceAPI
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.Serialization;
    using System.Threading;

    [DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "4.0.0.0"), DataContract(Name="ProfitList", Namespace="http://schemas.datacontract.org/2004/07/SLClient")]
    public class ProfitList : INotifyPropertyChanged
    {
        private DateTime? CreateTimeField;
        private decimal? CurrentAccountField;
        private int IdField;
        private bool? IsSendField;
        private int OrderIdField;
        private decimal? ProfitField;
        private string ProfitTypeField;
        private PropertyChangedEventHandler _PropertyChanged;
        private string RemarkField;
        private Guid UserIdField;

        public event PropertyChangedEventHandler PropertyChanged
        {
            add
            {
                PropertyChangedEventHandler handler2;
                PropertyChangedEventHandler propertyChanged = this._PropertyChanged;
                do
                {
                    handler2 = propertyChanged;
                    PropertyChangedEventHandler handler3 = (PropertyChangedEventHandler) Delegate.Combine(handler2, value);
                    propertyChanged = Interlocked.CompareExchange<PropertyChangedEventHandler>(ref this._PropertyChanged, handler3, handler2);
                }
                while (propertyChanged != handler2);
            }
            remove
            {
                PropertyChangedEventHandler handler2;
                PropertyChangedEventHandler propertyChanged = this._PropertyChanged;
                do
                {
                    handler2 = propertyChanged;
                    PropertyChangedEventHandler handler3 = (PropertyChangedEventHandler) Delegate.Remove(handler2, value);
                    propertyChanged = Interlocked.CompareExchange<PropertyChangedEventHandler>(ref this._PropertyChanged, handler3, handler2);
                }
                while (propertyChanged != handler2);
            }
        }

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this._PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember(Order=3)]
        public DateTime? CreateTime
        {
            get
            {
                return this.CreateTimeField;
            }
            set
            {
                if (!this.CreateTimeField.Equals(value))
                {
                    this.CreateTimeField = value;
                    this.RaisePropertyChanged("CreateTime");
                }
            }
        }

        [DataMember(Order=7)]
        public decimal? CurrentAccount
        {
            get
            {
                return this.CurrentAccountField;
            }
            set
            {
                if (!this.CurrentAccountField.Equals(value))
                {
                    this.CurrentAccountField = value;
                    this.RaisePropertyChanged("CurrentAccount");
                }
            }
        }

        [DataMember]
        public int Id
        {
            get
            {
                return this.IdField;
            }
            set
            {
                if (!this.IdField.Equals(value))
                {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }

        [DataMember(Order=8)]
        public bool? IsSend
        {
            get
            {
                return this.IsSendField;
            }
            set
            {
                if (!this.IsSendField.Equals(value))
                {
                    this.IsSendField = value;
                    this.RaisePropertyChanged("IsSend");
                }
            }
        }

        [DataMember]
        public int OrderId
        {
            get
            {
                return this.OrderIdField;
            }
            set
            {
                if (!this.OrderIdField.Equals(value))
                {
                    this.OrderIdField = value;
                    this.RaisePropertyChanged("OrderId");
                }
            }
        }

        [DataMember(Order=6)]
        public decimal? Profit
        {
            get
            {
                return this.ProfitField;
            }
            set
            {
                if (!this.ProfitField.Equals(value))
                {
                    this.ProfitField = value;
                    this.RaisePropertyChanged("Profit");
                }
            }
        }

        [DataMember(Order=4)]
        public string ProfitType
        {
            get
            {
                return this.ProfitTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ProfitTypeField, value))
                {
                    this.ProfitTypeField = value;
                    this.RaisePropertyChanged("ProfitType");
                }
            }
        }

        [DataMember(Order=5)]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public Guid UserId
        {
            get
            {
                return this.UserIdField;
            }
            set
            {
                if (!this.UserIdField.Equals(value))
                {
                    this.UserIdField = value;
                    this.RaisePropertyChanged("UserId");
                }
            }
        }
    }
}

